﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="KCPPopup.aspx.cs" Inherits="QLHD.KCPPopup" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Thêm/sửa Khoán chi phí</title>
    <link href="~/Styles/Site.css?v=1" rel="stylesheet" type="text/css" />
    <link href="/styles/kendo.common.min.css" rel="stylesheet" />
    <link href="/styles/kendo.bootstrap.min.css" rel="stylesheet" />
    <link href="/styles/bootstrap.css" rel="stylesheet" />
    <link href="/styles/docs.css" rel="stylesheet" />
    <script src="/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="/js/kendo.all.min.js" type="text/javascript"></script>
    <style>
        .kcp legend
        {
            margin-bottom: 0;
            padding-bottom: 0;
            font-size: 14px;
        }
        .kcp .k-numerictextbox, .kcp .k-numeric-wrap
        {
            margin: 0;
            padding: 0;
            border-radius: 0px;
        }
        .kcp .k-numerictextbox
        {
            border: 0;
        }
        .numeric-text
        {
            height: 25px !important;
            text-align: right;
            width: 120px;
        }
        fieldset table tr td
        {
            text-align: right;
        }
        .kcp fieldset
        {
            border: solid 1px #999;
            border-radius: 4px;
            margin: 3px;
            padding: 15px;
        }
        td
        {
            line-height: 26px;
        }
        .basic-info tr td:first-child
        {
            width: 200px;
        }
    </style>
    <script language="javascript" type="text/javascript">
        $().ready(function () {
            $("#txtNgay").kendoDatePicker({
                format: "dd/MM/yyyy"
            });
            $(".numeric-text").kendoNumericTextBox({
                format: "{0:N}"
            });
        });

    </script>
</head>
<body style="background: #fff;">
    <form id="form1" runat="server">
    <div class="kcp">
        <table width="100%" class="basic-info">
            <%--<tr>
                <td>
                    Khoán chi phí cha
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="drkcpcha" Width="450px" DataTextField="Name" DataValueField="Id">
                    </asp:DropDownList>
                </td>
            </tr>--%>
            <tr>
                <td>
                    Nội dung khoán chi phí
                </td>
                <td>
                    <input type="text" runat="server" style="width:400px;" id="txtnoidung" />
                </td>
            </tr>
            <tr>
                <td>
                    Số khoán chi phí
                </td>
                <td>
                    <asp:TextBox ID="txtsokcp" runat="server" Width="150px" CssClass="k-input k-textbox"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                        ControlToValidate="txtsokcp"></asp:RequiredFieldValidator>
                    <%--<input type="text" class="k-input k-textbox" style="width:300px" name="sokcp" runat="server" id="txtsokcp" />--%>
                </td>
            </tr>
            <tr>
                <td>
                    Giá trị
                </td>
                <td>
                    <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtgiatri" />
                </td>
            </tr>
            <tr>
                <td>
                    Ngày
                </td>
                <td colspan="">
                    <input type="text" class="k-input" runat="server" id="txtNgay" />
                </td>
            </tr>
            <tr>
                <td>
                    Ghi chú
                </td>
                <td>
                    <input type="text" style="width:400px;" runat="server" id="txtghichu" />
                </td>
            </tr>
        </table>
        <fieldset style="">
            <legend style="width:auto;">Chi tiết chi phí giao khoán:</legend>
            <table>
                <tr>
                    <td>
                        Thực thanh, thực chi
                    </td>
                    <td>
                        Chi qua công ty
                    </td>
                    <td>
                        TKCM
                    </td>
                    <td>
                        Thuê chuyên gia
                    </td>
                    <%if (maphong == "11")
                      { %>
                    <td>
                        Phân tích mẫu (TN)
                    </td>
                    <td>
                        Phân tích mẫu (P.MT)
                    </td>
                    <%} %>
                    <td>
                        Hóa chất
                    </td>
                    <td>
                        Thuê mua ngoài khác
                    </td>
                    <td>
                        Lương
                    </td>
                    <td>
                        Nguyên nhiên vật liệu, CCDC
                    </td>
                    <td>
                        Chi phí khác
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtgktttc" />
                    </td>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtgkquacty" />
                    </td>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtgktkcm" />
                    </td>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtgkthuechuyengia" />
                    </td>
                    <%if (maphong == "11")
                      { %>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtgkptmautn" />
                    </td>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtgkptmaumt" />
                    </td>
                    <%} %>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtgkhoachat" />
                    </td>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtgkthuemuangoaikhac" />
                    </td>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtgkluong" />
                    </td>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtgknguyenvl" />
                    </td>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtgkchiphikhac" />
                    </td>
                </tr>
            </table>
        </fieldset>
        <fieldset style="">
            <legend style="width:auto;">Chi tiết chi phí thực hiện:</legend>
            <table>
                <tr>
                    <td>
                        Thực thanh, thực chi
                    </td>
                    <td>
                        Chi qua công ty
                    </td>
                    <td>
                        TKCM
                    </td>
                    <td>
                        Thuê chuyên gia
                    </td>
                    <%if (maphong == "11")
                      { %>
                    <td>
                        Phân tích mẫu (TN)
                    </td>
                    <td>
                        Phân tích mẫu (P.MT)
                    </td>
                    <%} %>
                    <td>
                        Hóa chất
                    </td>
                    <td>
                        Thuê mua ngoài khác
                    </td>
                    <td>
                        Lương
                    </td>
                    <td>
                        Nguyên nhiên vật liệu, CCDC
                    </td>
                    <td>
                        Chi phí khác
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtthtttc" />
                    </td>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtthquacty" />
                    </td>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtthtkcm" />
                    </td>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtththuechuyengia" />
                    </td>
                    <%if (maphong == "11")
                      { %>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtthptmautn" />
                    </td>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtthptmaumt" />
                    </td>
                    <%} %>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtthhoachat" />
                    </td>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtththuemuangoaikhac" />
                    </td>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtthluong" />
                    </td>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtthnguyenvl" />
                    </td>
                    <td>
                        <input type="text" class="k-input k-textbox numeric-text" runat="server" id="txtthchiphikhac" />
                    </td>
                </tr>
            </table>
        </fieldset>
        <div style="clear: both;">
        </div>
        <div style="text-align: center; padding-top: 10px;">
            <asp:Button ID="btnSave" runat="server" Width="200px" Height="35px" Style="font-weight: bold;
                color: Blue;" Text="Lưu Khoán Chi Phí" OnClick="btnSave_Click" />
        </div>
    </div>
    </form>
</body>
</html>
